package org.jeecg.modules.engineering.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.engineering.entity.EquipEventInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.engineering.vo.EquipEventInfoSum;
import org.jeecg.modules.engineering.vo.EquipEventInfoExt;
import org.jeecg.modules.engineering.vo.EventProcessStatus;

import java.util.Date;
import java.util.List;

/**
 * @Description: 设备事件信息表
 * @Author: jeecg-boot
 * @Date:   2019-08-20
 * @Version: V1.0
 */
public interface IEquipEventInfoService extends IService<EquipEventInfo> {

    List<EquipEventInfoExt> findEventInfoByProject(String projectId, Integer minLevel, Integer maxLevel);

    List<EquipEventInfoSum> findEventInfoSumByProject(String projectId, String levelList, Date startTime);

    List<EventProcessStatus> findUnProcessByProjectAndSystem(String projectId, String topSystem);

    IPage<EquipEventInfo> selectSqlList(Page<EquipEventInfo> page, String eventId, String equipName, List<String> projectIds);

    List<EquipEventInfo> selectSqlList(String eventId, String equipName, List<String> projectIds);
}
